package com.softtown.modules.sys.dto;

import com.softtown.common.utils.PageUtils;
import com.softtown.common.validator.group.AddGroup;
import com.softtown.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.List;

/**
 * @author: fuming
 * @Date: 2019/6/6 17:11
 * @Description:
 */
@Data
@ApiModel(value = "添加反馈")
public class SysFeedBackDTO extends PageUtils implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "{feedBack.type.require}", groups = AddGroup.class)
    private Integer type;

    @ApiModelProperty(value = "主题")
    @NotBlank(message = "{feedBack.title.require}", groups = AddGroup.class)
    private String title;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "{feedBack.content.require}", groups = AddGroup.class)
    private String content;

    @ApiModelProperty(value = "公司id")
    private Long compId;

    @ApiModelProperty(value = "附件")
    private String annex;

    @ApiModelProperty(value = "反馈用户id")
    @NotNull
    private Long fbUserId;

    @ApiModelProperty(value = "参数")
    private String pram;

    @ApiModelProperty(value = "开始时间")
    private String beginDate;

    @ApiModelProperty(value = "结束时间")
    private String endDate;

    @ApiModelProperty(value = "文件列表")
    private List<SysDocAttDTO> sysDocAttDTOList;

    @ApiModelProperty(value = "联系方式")
    private String contact;
}
